Forgot to mention in the last commit message: Ensure that stdin, stdout,