Make callback optional for streamingWrite