Added segmentation to tally.
Part 2 completed.