Small edit - Still can't figure out how to make a barrier semaphore
Add external library