Update matching rules.