Writing to output stream is now synchronized.