Change HashSets to arrays as suggested by Icyene.