Currently doesn't work for multiple inputs at once