Oops! Fixed a bug with writeInputStreamToOutputStream not working
correctly.