fixed the MMFINISHED function. Was using wrong variable. Should be working now