Segment Purification

Adding more here later.