Changed friendship checking to reflect updated API.