Move the rule execution logic into the service layer
Debug mode added in rule execution