For now...baking analysis functions directly into Segment class.