Upgraded from sys.argv to argparse.