Good point here, I'll try to replace it with AtomicLong