Adding getopt_long logic