Fix for GitHub issue #20 - support for stdout