These functions of directly getting and setting segment indexes are no longer useful as now we need 2 indexes: repeat and segment index. The only operations needed are advance_segment, going back to the first one or seeking for a timestamp.