Added some extra shit to the syncing. Still fucked

but almost there