Added a createRule with parameters