Add support for console I/O