New version of semaphore
Great fixes. Need to improve FIFO