Updated deprecated addMember method by adding addMembership and appropriate constants.