                                             let aHigh = defaultsDictionary[ConfigurationPropertyKey.alarmHighKey] as! Bool
                                             let aLow = defaultsDictionary[ConfigurationPropertyKey.alarmLowKey] as! Bool
                                             let aTAU = defaultsDictionary[ConfigurationPropertyKey.alarmTimeAgoUrgentKey] as! Bool
-                                            let aTAUMin = defaultsDictionary[ConfigurationPropertyKey.alarmTimeAgoUrgentMinsKey] as! Int
+                                            let aTAUMDouble = defaultsDictionary[ConfigurationPropertyKey.alarmTimeAgoUrgentMinsKey] as! Double
+                                            let aTAUMin: NSTimeInterval = aTAUMDouble
+                                            
                                             let aTAW = defaultsDictionary[ConfigurationPropertyKey.alarmTimeAgoWarnKey] as! Bool
-                                            let aTAWMin = defaultsDictionary[ConfigurationPropertyKey.alarmTimeAgoWarnMinsKey] as! Int
+                                            let aTAWMDouble = defaultsDictionary[ConfigurationPropertyKey.alarmTimeAgoWarnMinsKey] as! Double
+                                            let aTAWMin: NSTimeInterval = aTAWMDouble
                                             let aTUH = defaultsDictionary[ConfigurationPropertyKey.alarmUrgentHighKey] as! Bool
                                             let aTUL = defaultsDictionary[ConfigurationPropertyKey.alarmUrgentLowKey] as! Bool
                                             

    let alarmHigh: Bool
    let alarmLow: Bool
    let alarmTimeAgoUrgent: Bool
    let alarmTimeAgoUrgentMins: Int
    let alarmTimeAgoWarn: Bool
    let alarmTimeAgoWarnMins: Int
    let alarmUrgentHigh: Bool
    let alarmUrgentLow: Bool
}

    case Always = "always"
    case Noise = "noise"
}

/*
enum Device: String {
    case dexcom = "dexcom"
    case share2 = "share2"
}
*/

struct Threshold {
    let bg_high: Int
