Registration and sorting.
Multiple changes.

Set stream.
Create History entry.
Sync properly.
Use compression, make general model of tasks.
get rid of secret
Remove temp file.