We need to pull the data, run the aggregation. Discuss with Grenville if we want to fix variable names and rewrite.