Added overlapping segment support and examples