fixup! Fix parameters of aggregator
Implement aggregator
Add test for aggregator
Add max_stored option to aggregator