Factored out the unlist function and finished the minimum variance
aggregator.