Added save of defaultMemory