Changed from using argparse to optparse.