Tweaks to sync script.