Added -sn flag to set initial segment number.