Renamed event.type to eventType to avoid clash with send.type and invoker.type