Updated MemoryHandler Class