Command now extends event emitter.