Do not use internal locks.
Removed running flag.
Use arrays not maps.