Updated distribute script