Added user input to the input-device program.