Changed indent. Clarified calculation of segments.