Refactoring: input() routine.