Refactoring memory info.