Sort out rules file, pass all flags