Slight modifications to MMM.c to tidy it up a bit