Re-work pagination.