Added command line argument parsing code.