Add pagenation method