Pagination now implemented