Add base logic for syncing

Otherwise is it the correct license?