Changed process runner to capture stdin and stdout