Fixed rules, added rule attribute