Refactored rules.