Added attribute recognition for adding rules