Add compileRules