Added support for stdout output