Added semaphore basic stuff