First cut at aggregator automation code