Use gensym for symbol generation rather than maintaining state in an atom.