Trimmed the script file to its essential commands