Updated ScriptLoader