Changed the memory class