Added support for mutliple rules + options parser.