Added in partial support for console input.