-Semaphore added to find global best