Only paginate if required