Is this line necessary? Isn't currMMI already defined properly at the the top of the function?