More idiomatic use of atoms