This is the main part of scriptfile

