Improve script function call. Update SceneEngine