Added support for stdin