New location_match algorithm.