Refined the paginate