Added the semaphore