Modifications and generalizations to setup scripts.