Basic support for custom rules.