Added semaphores to file system