Global counters changed to AtomicIntegers.
Exectuable permissions added to unix scripts