Removed heap memory allocation implemenation.