Moved paginated sub into a package