Add basic memory management layer.