Somehow got the syncing working again...
Structuring code