Add pagination to search call