Update script for syncing