Replaced array with enum ordinal() indexing with EnumMap.