Initial allocator implementation.