Add basic version of allocator.