Semaphore working correctly.