Verify brackets now occurs in find_endpoints with more efficient solution.