Adding scripts for semaphore