Implemented paging for search results