Use mpdm_write() instead of mpdm_write_wcs() in M_p().