Refactored memory.