Refactored to use Atomic.mode() instead of Atomic.readOnly()