Waiting for user input before exiting program