         
         info["env"] = envData
         
+        // Detect wifi SSID? http://www.enigmaticape.com/blog/determine-wifi-enabled-ios-one-weird-trick
+        
         return info
     }
     
     var batteryLevel : Int {
+        UIDevice.currentDevice().batteryMonitoringEnabled = true
         let level = Double(UIDevice.currentDevice().batteryLevel)
         if level >= 0 {
             return Int(level * 100.0)

    }
    
    var batteryState : String {
        switch UIDevice.currentDevice().batteryState {
        case .Unknown:
            return "Unknown"

        deviceData["idiom"] = idiom
        deviceData["batteryState"] = batteryState
        deviceData["batteryLevel"] = batteryLevel
        deviceData["availableSpace"] = availableSpace
        deviceData["totalSpace"] = totalSpace
        deviceData["usedMemory"] = usedMemory
        
        let physicalMemoryMB = NSProcessInfo.processInfo().physicalMemory / 1024 / 1024
        deviceData["totalMemory"] = NSNumber(unsignedLongLong: physicalMemoryMB)
        
        info["device"] = deviceData
        
