Changed endpoints to from_endpoints to eliminate namespace confusion