Added logging to RuleAction