Implement the EventEmitter interface.