Replaced custom allocator handling.