         device.controllerHandler = ControllerHandler()
         device.controllerHandler!.removeSubscriptions = device.removeSubscriberForAllCharacteristics
 
-        let applicationHandler = ApplicationHandler(responder: root(device: device))
+        let application = ApplicationHandler(responder: root(device: device))
 
         self.ownGroup = worker == nil
         self.group = worker ?? MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)

        logger.error("Did not publish Bonjour service: \(errorDict)")
    }
}


            // Set the handlers that are applied to the accepted child `Channel`s.
            .childChannelInitializer { channel in
                // It's important we use the same handler for all accepted channels.
                // The ControllerHandler is thread-safe!
                channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
            }

            // Enable TCP_NODELAY and SO_REUSEADDR for the accepted Channels
