Updating magic rules.