Added grouping to events.