Refined user interface.  Invalid user inputs now handled correctly.