Added rule engine. Need to add custom rules to it.