Changed to pull up the command line parsing to the top of the file.