Addition of semaphore for reduced load