Removed hardcoding of 10 segments, use Agent.configNumSegments