Add pagination to events.