Running code refactored to be study-specific. Got a nice parallelization hook in the process. Points.