Update rules file