Add matching rules.