Added untested adapter for emitting events