Added roleArr function to get all roles.