Cleaned up rules.