Finished the query, pagination.