Add new_alloc and pool_alloc