Implemented tentative pagination and sorting