Subprocess tweaks (thanks Jeremy)