Use Scalaz Atomic class instead of Java's AtomicReference.
Remove debugging.
Remove debugging.