Added ability to specify the maximum number of results to return from a
paginated search