Try to detect and group events.