Add support to custom rules