Renamed input() to doInput()