         self.reason = reason
         self.tick = tick
         self.correction = correction
+        self.predBGs = predBGs
     }
-    
+
     public var dictionaryRepresentation: [String: AnyObject] {
 
         var rval = [String: AnyObject]()

    let reason: String?
    let tick: Int?
    let correction: Double?

    public init(timestamp: NSDate, rate: Double, duration: NSTimeInterval, eventualBG: Int, bg: Int, reason: String? = nil, tick: Int? = nil, correction: Double? = nil) {
        self.timestamp = timestamp
        self.rate = rate
        self.duration = duration

            rval["correction"] = correction
        }

        if let predBGs = predBGs {
            rval["predBGs"] = predBGs
        }

        return rval
    }
