Vastly improve gscripts