Added more code to parse the command line arguments.