Added next-occurrence to Atom.