Add segment io