Initial work on distribution script.