                 {(characteristicProfile) in
                     characteristicProfile.initialValue = NSData.serialize(TISensorTag.Enabled.No)
                     characteristicProfile.properties = CBCharacteristicProperties.Read | CBCharacteristicProperties.Write
-                    characteristicProfile.afterDiscovered(){(characteristic:Characteristic) in
+                    characteristicProfile.afterDiscovered(){(characteristic) in
                         characteristic.write(TISensorTag.Enabled.Yes, afterWriteSuccessCallback:{})
                     }
                 })

            // Accelerometer Data
            serviceProfile.addCharacteristic(StructCharacteristicProfile<TISensorTag.AccelerometerService.Data.Value>(uuid:TISensorTag.AccelerometerService.Data.uuid, name:TISensorTag.AccelerometerService.Data.name)
                {(characteristicProfile) in
                    characteristicProfile.initialValue = NSData.serialize(TISensorTag.AccelerometerService.Data.Value.fromRawValues([-2, 6, 69]))
                    characteristicProfile.properties = CBCharacteristicProperties.Read | CBCharacteristicProperties.Notify
            })
            // Accelerometer Enabled

        //***************************************************************************************************
        profileManager.addService(ServiceProfile(uuid:TISensorTag.BarometerService.uuid, name:TISensorTag.BarometerService.name){(serviceProfile) in
            // Barometer Data
            serviceProfile.addCharacteristic(PairStructCharacteristicProfile<TISensorTag.BarometerService.Data.Value>(uuid:TISensorTag.BarometerService.Data.uuid, name:TISensorTag.BarometerService.Data.name, fromEndianness:(.Little, .Little))
                {(characteristicProfile) in
                    characteristicProfile.initialValue = NSData.serializeToLittleEndian(TISensorTag.BarometerService.Data.Value.fromRawValues(([-2343], [33995]))!.toRawValues())
                    characteristicProfile.properties = CBCharacteristicProperties.Read | CBCharacteristicProperties.Notify
                })
            // Barometer Calibration
            serviceProfile.addCharacteristic(PairStructCharacteristicProfile<TISensorTag.BarometerService.Calibration.Value>(uuid:TISensorTag.BarometerService.Calibration.uuid, name:TISensorTag.BarometerService.Calibration.name, fromEndianness:(.Little, .Little))
                {(characteristicProfile) in
                    characteristicProfile.properties = CBCharacteristicProperties.Read
                    characteristicProfile.initialValue = NSData.serializeToLittleEndian(TISensorTag.BarometerService.Calibration.Value.fromRawValues(([45697, 25592, 48894, 36174], [7001, 1990, -2369, 5542])))
                })
            // Baromter Enabled
            serviceProfile.addCharacteristic(EnumCharacteristicProfile<TISensorTag.BarometerService.Enabled.Value>(uuid:TISensorTag.BarometerService.Enabled.uuid, name:TISensorTag.BarometerService.Enabled.name)
                {(characteristicProfile) in
                    characteristicProfile.afterDiscovered(){(characteristic) in
                        characteristicProfile.initialValue = NSData.serialize(TISensorTag.BarometerService.Enabled.Value.No)
                        characteristicProfile.properties = CBCharacteristicProperties.Read | CBCharacteristicProperties.Write
                        characteristic.write(TISensorTag.BarometerService.Enabled.Value.Yes, afterWriteSuccessCallback:{
                            characteristic.write(TISensorTag.BarometerService.Enabled.Value.Calibrate, afterWriteSuccessCallback:{})
                        })
                    }
                })
        })

        //***************************************************************************************************
