Optimize events with a separate event emitter.