Correctly inherit from EventEmitter