Changed pagination to use a pager.