Complete functions up to seq-max. wip longest-sequence function.