+1
Looking at the captureOutput implementation it's parameters are out and chunk. How does this fix the issues?