AtomicReference should be final for position field.