More robust user input