Cleaned up the memory manager macro.