Added stdout capture, see if this speeds things up.