Initial work on pagination.