Update the rules file