Rewrote ScriptEngine