Small paging refactor.