VE-1344: Fix by implementing "semaphore"