Add rudimentary support for protocol events.