Changed to mem array.