Added pagination to search results.