Added support for TotalSegments to Scan ops
0.5.0