The Aggregate Matching Function