Add pagging and box sorting