Now handles prompting the user for input in a synchronous fashion.