Improve robustness and readability of MemMgnt