Intermediate version of sync
tests
New sync
Fix sync bug
Fix problems with sync command