Add pagination utility