Capturing data from an EventEmitter