Added a maxResults parameter to the ResultCollector.