Updated Main.scpt

Changed internal code.