     }
 
     let generatorUnits : [String: HKUnit] = [
+        HKCategoryTypeIdentifierAppleStandHour            : HKUnit.hourUnit(),
         HKCategoryTypeIdentifierSleepAnalysis             : HKUnit.hourUnit(),
-        HKCategoryTypeIdentifierAppleStandHour            : HKUnit.hourUnit(),
         HKQuantityTypeIdentifierActiveEnergyBurned        : HKUnit.kilocalorieUnit(),
+        HKQuantityTypeIdentifierBasalBodyTemperature      : HKUnit.degreeFahrenheitUnit(),
+        HKQuantityTypeIdentifierBasalEnergyBurned         : HKUnit.kilocalorieUnit(),
+        HKQuantityTypeIdentifierBloodAlcoholContent       : HKUnit.gramUnit().unitDividedByUnit(HKUnit.literUnit()),
+        HKQuantityTypeIdentifierBloodGlucose              : HKUnit.gramUnit().unitDividedByUnit(HKUnit.literUnit()),
+        HKQuantityTypeIdentifierBloodPressureDiastolic    : HKUnit.millimeterOfMercuryUnit(),
+        HKQuantityTypeIdentifierBloodPressureSystolic     : HKUnit.millimeterOfMercuryUnit(),
+        HKQuantityTypeIdentifierBodyFatPercentage         : HKUnit.percentUnit(), 
         HKQuantityTypeIdentifierBodyMass                  : HKUnit.poundUnit(),
         HKQuantityTypeIdentifierBodyMassIndex             : HKUnit.countUnit(),
-        HKQuantityTypeIdentifierBloodPressureDiastolic    : HKUnit.millimeterOfMercuryUnit(),
-        HKQuantityTypeIdentifierBloodPressureSystolic     : HKUnit.millimeterOfMercuryUnit(),
+        HKQuantityTypeIdentifierBodyTemperature           : HKUnit.degreeFahrenheitUnit(), 
+        HKQuantityTypeIdentifierDietaryBiotin             : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
         HKQuantityTypeIdentifierDietaryCaffeine           : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),
+        HKQuantityTypeIdentifierDietaryCalcium            : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
         HKQuantityTypeIdentifierDietaryCarbohydrates      : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),
         HKQuantityTypeIdentifierDietaryCholesterol        : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),
+        HKQuantityTypeIdentifierDietaryChloride           : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryCholesterol        : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryChromium           : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryCopper             : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),,
         HKQuantityTypeIdentifierDietaryEnergyConsumed     : HKUnit.kilocalorieUnit(),
         HKQuantityTypeIdentifierDietaryFatMonounsaturated : HKUnit.gramUnit(),
         HKQuantityTypeIdentifierDietaryFatPolyunsaturated : HKUnit.gramUnit(),
         HKQuantityTypeIdentifierDietaryFatSaturated       : HKUnit.gramUnit(),
         HKQuantityTypeIdentifierDietaryFatTotal           : HKUnit.gramUnit(),
+        HKQuantityTypeIdentifierDietaryFiber              : HKUnit.gramUnit(), 
+        HKQuantityTypeIdentifierDietaryFolate             : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryIodine             : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryIron               : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryMagnesium          : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryManganese          : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryMolybdenum         : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli), 
+        HKQuantityTypeIdentifierDietaryNiacin             : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),
+        HKQuantityTypeIdentifierDietaryPantothenicAcid    : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),
+        HKQuantityTypeIdentifierDietaryPhosphorus         : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),
+        HKQuantityTypeIdentifierDietaryPotassium          : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),
         HKQuantityTypeIdentifierDietaryProtein            : HKUnit.gramUnit(),
         HKQuantityTypeIdentifierDietarySugar              : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),
         HKQuantityTypeIdentifierDietarySodium             : HKUnit.gramUnitWithMetricPrefix(HKMetricPrefix.Milli),

        generateDataset(path, users: users, size: sizePerUser, startDate: startDate, endDate: endDate)
    }

}

    let parameters : [Bool: [String: (Double, Double)]] = [
        true: [
            HKCategoryTypeIdentifierAppleStandHour            : (4.0,    1.0),
            HKCategoryTypeIdentifierSleepAnalysis             : (6.5,    1.83),
            HKQuantityTypeIdentifierActiveEnergyBurned        : (2750.0, 750.0),
            HKQuantityTypeIdentifierBasalBodyTemperature      : (98.0,   5.0 ),
            HKQuantityTypeIdentifierBasalEnergyBurned         : (1500.0, 250.0),
            HKQuantityTypeIdentifierBloodAlcoholContent       : (0.001,  0.001),
            HKQuantityTypeIdentifierBloodGlucose              : (0.05,   0.01),
            HKQuantityTypeIdentifierBloodPressureDiastolic    : (80.0,   10.0),
            HKQuantityTypeIdentifierBloodPressureSystolic     : (120.0,  13.33),
            HKQuantityTypeIdentifierBodyFatPercentage         : (215.0,  41.67),
            HKQuantityTypeIdentifierBodyMass                  : (215.0,  41.67),
            HKQuantityTypeIdentifierBodyMassIndex             : (25,     5.0),
            HKQuantityTypeIdentifierBodyTemperature           : (25,     5.0),
            HKQuantityTypeIdentifierDietaryBiotin             : (166.4,  55.467),
            HKQuantityTypeIdentifierDietaryCaffeine           : (166.4,  55.467),
            HKQuantityTypeIdentifierDietaryCalcium            : (166.4,  55.467),
            HKQuantityTypeIdentifierDietaryCarbohydrates      : (327.0,  69.9),
            HKQuantityTypeIdentifierDietaryChloride           : (327.0,  69.9),
            HKQuantityTypeIdentifierDietaryCholesterol        : (352.0,  107.147),
            HKQuantityTypeIdentifierDietaryChromium           : (352.0,  107.147),
            HKQuantityTypeIdentifierDietaryCopper             : (352.0,  107.147),
            HKQuantityTypeIdentifierDietaryEnergyConsumed     : (2757.0, 526.6),
            HKQuantityTypeIdentifierDietaryFatMonounsaturated : (36.9,   8.493),
            HKQuantityTypeIdentifierDietaryFatPolyunsaturated : (24.3,   6.01),
            HKQuantityTypeIdentifierDietaryFatSaturated       : (33.4,   9.147),
            HKQuantityTypeIdentifierDietaryFatTotal           : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryFiber              : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryFolate             : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryIodine             : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryIron               : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryMagnesium          : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryManganese          : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryMolybdenum         : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryNiacin             : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryPantothenicAcid    : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryPhosphorus         : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryPotassium          : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryProtein            : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryRiboflavin         : (88.3,   22.2),
            HKQuantityTypeIdentifierDietarySelenium           : (88.3,   22.2),
            HKQuantityTypeIdentifierDietarySodium             : (4560.7, 988.493),
            HKQuantityTypeIdentifierDietarySugar              : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryThiamin            : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminA           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminB12         : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminB6          : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminC           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminD           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminE           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminK           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryWater              : (5.0,    1.67),
            HKQuantityTypeIdentifierDietaryZinc               : (5.0,    1.67),
            HKQuantityTypeIdentifierDistanceCycling           : (5.0,    1.67),
            HKQuantityTypeIdentifierDistanceWalkingRunning    : (5.0,    1.67),
            HKQuantityTypeIdentifierElectrodermalActivity     : (5.0,    1.67),
            HKQuantityTypeIdentifierFlightsClimbed            : (5.0,    1.67),
            HKQuantityTypeIdentifierForcedExpiratoryVolume1   : (5.0,    1.67),
            HKQuantityTypeIdentifierForcedVitalCapacity       : (5.0,    1.67),
            HKQuantityTypeIdentifierHeartRate                 : (80.0,   13.33),
            HKQuantityTypeIdentifierHeight                    : (80.0,   13.33),
            HKQuantityTypeIdentifierInhalerUsage              : (80.0,   13.33),
            HKQuantityTypeIdentifierLeanBodyMass              : (80.0,   13.33),
            HKQuantityTypeIdentifierNikeFuel                  : (80.0,   13.33),
            HKQuantityTypeIdentifierNumberOfTimesFallen       : (80.0,   13.33),
            HKQuantityTypeIdentifierOxygenSaturation          : (80.0,   13.33),
            HKQuantityTypeIdentifierPeakExpiratoryFlowRate    : (80.0,   13.33),
            HKQuantityTypeIdentifierPeripheralPerfusionIndex  : (80.0,   13.33),
            HKQuantityTypeIdentifierRespiratoryRate           : (6000.0, 1996.67),
            HKQuantityTypeIdentifierStepCount                 : (6000.0, 1996.67),
            HKQuantityTypeIdentifierUVExposure                : (6.0,    1.0)
        ],

        false: [
            HKCategoryTypeIdentifierAppleStandHour            : (4.0,    1.0),
            HKCategoryTypeIdentifierSleepAnalysis             : (6.5,    1.83),
            HKQuantityTypeIdentifierActiveEnergyBurned        : (2750.0, 750.0),
            HKQuantityTypeIdentifierBasalBodyTemperature      : (98.0,   5.0 ),
            HKQuantityTypeIdentifierBasalEnergyBurned         : (1500.0, 500.0),
            HKQuantityTypeIdentifierBloodAlcoholContent       : (0.001,  0.001),
            HKQuantityTypeIdentifierBloodGlucose              : (0.10,   0.01),
            HKQuantityTypeIdentifierBloodPressureDiastolic    : (80.0,   10.0),
            HKQuantityTypeIdentifierBloodPressureSystolic     : (120.0,  13.33),
            HKQuantityTypeIdentifierBodyFatPercentage         : (215.0,  41.67),
            HKQuantityTypeIdentifierBodyMass                  : (215.0,  41.67),
            HKQuantityTypeIdentifierBodyMassIndex             : (25,     5.0),
            HKQuantityTypeIdentifierBodyTemperature           : (25,     5.0),
            HKQuantityTypeIdentifierDietaryBiotin             : (166.4,  55.467),
            HKQuantityTypeIdentifierDietaryCaffeine           : (142.7,  47.567),
            HKQuantityTypeIdentifierDietaryCalcium            : (166.4,  55.467),
            HKQuantityTypeIdentifierDietaryCarbohydrates      : (246.3,  43.13),
            HKQuantityTypeIdentifierDietaryChloride           : (327.0,  69.9),
            HKQuantityTypeIdentifierDietaryCholesterol        : (235.7,  78.57),
            HKQuantityTypeIdentifierDietaryChromium           : (352.0,  107.147),
            HKQuantityTypeIdentifierDietaryCopper             : (352.0,  107.147),
            HKQuantityTypeIdentifierDietaryEnergyConsumed     : (1957.0, 315.67),
            HKQuantityTypeIdentifierDietaryFatMonounsaturated : (25.7,   5.1),
            HKQuantityTypeIdentifierDietaryFatPolyunsaturated : (17.4,   3.533),
            HKQuantityTypeIdentifierDietaryFatSaturated       : (23.9,   5.227),
            HKQuantityTypeIdentifierDietaryFatTotal           : (73.1,   13.0),
            HKQuantityTypeIdentifierDietaryFiber              : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryFolate             : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryIodine             : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryIron               : (103.2,  21.77),
            HKQuantityTypeIdentifierDietaryMagnesium          : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryManganese          : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryMolybdenum         : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryNiacin             : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryPantothenicAcid    : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryPhosphorus         : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryPotassium          : (88.3,   22.2),
            HKQuantityTypeIdentifierDietaryProtein            : (71.3,   12.03),
            HKQuantityTypeIdentifierDietaryRiboflavin         : (88.3,   22.2),
            HKQuantityTypeIdentifierDietarySelenium           : (88.3,   22.2),
            HKQuantityTypeIdentifierDietarySodium             : (3187.3, 557.93),
            HKQuantityTypeIdentifierDietarySugar              : (112.0,  28.73),
            HKQuantityTypeIdentifierDietaryThiamin            : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminA           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminB12         : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminB6          : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminC           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminD           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminE           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryVitaminK           : (143.3,  47.03),
            HKQuantityTypeIdentifierDietaryWater              : (4.7,    1.567),
            HKQuantityTypeIdentifierDietaryZinc               : (5.0,    1.67),
            HKQuantityTypeIdentifierDistanceCycling           : (5.0,    1.67),
            HKQuantityTypeIdentifierDistanceWalkingRunning    : (5.0,    1.67),
            HKQuantityTypeIdentifierElectrodermalActivity     : (5.0,    1.67),
            HKQuantityTypeIdentifierFlightsClimbed            : (5.0,    1.67),
            HKQuantityTypeIdentifierForcedExpiratoryVolume1   : (5.0,    1.67),
            HKQuantityTypeIdentifierForcedVitalCapacity       : (5.0,    1.67),
            HKQuantityTypeIdentifierHeartRate                 : (80.0,   13.33),
            HKQuantityTypeIdentifierHeight                    : (80.0,   13.33),
            HKQuantityTypeIdentifierInhalerUsage              : (80.0,   13.33),
            HKQuantityTypeIdentifierLeanBodyMass              : (80.0,   13.33),
            HKQuantityTypeIdentifierNikeFuel                  : (80.0,   13.33),
            HKQuantityTypeIdentifierNumberOfTimesFallen       : (80.0,   13.33),
            HKQuantityTypeIdentifierOxygenSaturation          : (80.0,   13.33),
            HKQuantityTypeIdentifierPeakExpiratoryFlowRate    : (80.0,   13.33),
            HKQuantityTypeIdentifierPeripheralPerfusionIndex  : (80.0,   13.33),
            HKQuantityTypeIdentifierRespiratoryRate           : (6000.0, 1996.67),
            HKQuantityTypeIdentifierStepCount                 : (6000.0, 1996.67),
            HKQuantityTypeIdentifierUVExposure                : (6.0,    1.0)
        ]
