Added user input routine for testing.