Extends EventEmitter and emits reply events.