Added pagination to the pagination demo.