Threads working, semaphores working aswell