Fixed getopt, needed to use optarg.