Implemented base paging functionality.