 
     var UDPEnabled: Bool {
         get {
-            return boolForKey(Keys.UDPEnabled)
+            return boolForKey(Keys.UDPEnabled, defaultValue: true)
         }
         set {
             setBool(newValue, forKey: Keys.UDPEnabled)


    var isUserLoggedIn: Bool {
        get {
            return boolForKey(Keys.isUserLoggedIn)
        }
        set {
            setBool(newValue, forKey: Keys.isUserLoggedIn)

        defaults.synchronize()
    }

    func boolForKey(key: String, defaultValue: Bool) -> Bool {
        let defaults = NSUserDefaults.standardUserDefaults()

        if let result = defaults.objectForKey(key) {
            return result.boolValue
        }
        else {
            return defaultValue
        }
    }
}
