Add support for reading from stdin