Fixed all the relationship functions to work with the new endpoints..