Use sandboxed standard output to allow functioning in subshell