Add base logic for syncing

What's up with this file?