Add a per-run setup function
Merge pull request #27 from dstockwell/per-run-setup

Per run setup