Using new structure for the global memory state.