This makes it easier to make the second step, which is moving endpoints to a struct instead of a string.