Added a simple custom memory manager.