Adding the nseg code (needed by RepeatScout).