DON'T FORGET TO REMOVE THE SEMAPHORE