Switch to an indexed for loop for Enum Generation.