Modify file to accept affinity group name