This version goes through all defined rules