Adding support for paginated results.