Implementation of match criteria.