Add an ability to get endpoints