Better formatting of segments