Work in progress. Need to figure out a better way to get parameters to the analysis.