Add ability to select only trajectory segments of certain length.