Add sync command.
Add probabilistic errors and tests that sync succeeds.
Only set Para defaults if they are not set.
Clarify log messages.
Move retry logic in a func.
Atomic reads of shared variables.
Make sync method an interface, with default impl.
Use a SyncTask with constructor to set default values.