Add filtering on rule