Move raw user input processing into a new function.  Add basic profiling.