Adding alerts to sync.js for troubleshooting