Addng M to apc.shm.