Added code to process command line arguments.