Added ConsoleWriter to get input stream from the console.