Introduce aggregation step for planning [broken]