First attempt to add a semaphore