Sequence group support.

The code for retrieving paths is redundant.  Perhaps some code can be
extracted into a separate function?