Added Init Function in ScriptBase