How to choose an endpoint