Added pagination.
Merge branch 'paginate-search-results'