This makes custom rules work.