Added checking for non existing sets or invalid options on the command line.