Added disambiguation heuristic for Matlab and M.