M: ScriptFile: refactoring.