Custom writeable stream handling added