Improved version for easy adding of rules
Improved version for easy adding of rules