Add a method for user input.