Properly sets the logic for our paging functionality.