Implemented writable stream.