Added semaphores