Reordered models so ScriptFile is defined first