Use the new function to write and copy or stream.