Renamed event_t to event_type_t, since it has nothing to do with event