Add definitions for filter and filterRulesGroup