Implement pagination and clump grouping | Peregrine