Made some minor improvements to the scriptfile