Made pagination a function