Broken WIP: partial 'sync' function