Adapted to the enum of event ids. AGAIN