switched to using AtomicLong
Fix thread that wasn't being nice