This should be an internal function, wrapped in getMatches, as they are coupled.