Add support for reading from consoles