Some refinement on user inputs