I modified lines 76 through 108 to provide an alternative search method for basins.
Here's two alternative search strings.