Added a race condition protection
Added a race condition protection