Put progress callback after writing to stream