Reworked Memory and MemoryManager