Added search pagination.