Wrote a wrapper script and cleaned up mm.r