Tweak to sync script