Ongoing work on the pagination logic.