Add support for paginated API results.