Added getopt.