Improve streams

Is it intentional that this is called `bytesWritten` and not `bytesRead`?