Add in additional safety check to mmfile.