Added GetOpt structure to process command line switches.