Modify pagination as per requirement.