ScriptInit and fixes