Disabling sync on startup and adding functionality to sync in background.