Adding memory allocator to set different behavior when managing memory.