Added a log statement for max results.