Writing underlying code to find the latest pact for each consumer/provider pair.