Corrected distribute scripts