Added serialization to streaming writers