Updated distribution script