Replace the AtomicLong with a regular long var, for simplicity