Restored distribution script