Pagination - WIP

Sending a pull request during WIP so that you can review the code.