Writes stream