Only syncing if sync is turned on.