Updating to new endpoints config method