Modified some mfile functions.