Made simple change to getAffiliations. It does not need any input.