(find_endpoint): New.