Some update tweaking.
Added application-wide mutex.