Added an event class.