Added ConsoleInputStream to allow reading from console as a stream.