Don't rely on 'readline' module.
...
Use EventEmitter.