Fix segmentation fault.
Archive automated scripts modified by Prof Steen.