Add pagination and pager functions