Renamed processInput to input