Added a memory class.