Sync ssot

Placeholder, needs more tests and comments.