Add debugging for rules.