Work with scripting
Moved scripts into script file