Add support for stdin/stdout piping