Coded up CMRMNfits