Refactoring user input.