Adjust loop pagination output