Replaced memory file with term_to_atom.