Updated sync.sh