Changed index array for easier auto-pagination