Adding Enum support for rules.