Logic added to the rules