Switched to Popen to capture stdout/stderr