Piecing out agg cursor