Ensures there is only one syncing happening at the same time and other minor tweaks.