extractBoundaryRoots now works.