Integrate memory allocation.