Restore affiliations script added