Moved some of the sync code into the zzk