FIXED: Generating atoms now throws an exception when not given an atom.