Using atom for last-id instead of gensym.