             services.values.reserveCapacity(newValues.count)
             
             newValues.forEach {
-                let identifier = services.newIdentifier()
+                let identifier = UInt($0.handle)
                 services.values[identifier] = $0
             }
         }

    public func writeValue(_ data: Data,
                           for characteristic: Characteristic<Peripheral>,
                           withResponse: Bool = true,
                           timeout: TimeInterval = 30) throws {
        
        fatalError()
    }
    
    public func notify(_ notification: ((Data) -> ())?,
                       for characteristic: Characteristic<Peripheral>,
                       timeout: TimeInterval = 30) throws {
        
        fatalError()
    }

            isRunning = false
            thread = nil
        }
        
        // MARK: - Private Methods
        
        private func main() {
            
