Implement Allocator.