     public func startAdvertisingHost() {
         stopSearchingForHosts()
         self.host = myPeerId
-        if self.serviceAdvertiser == nil {
-            serviceAdvertiser = MCNearbyServiceAdvertiser(peer: myPeerId,
-                                                          discoveryInfo: ["peerType": "host"], serviceType: serviceType)
-//            self.serviceAdvertiser?.delegate = self
-        }
+
+        serviceAdvertiser = MCNearbyServiceAdvertiser(peer: myPeerId,
+                                                      discoveryInfo: ["peerType": "host"], serviceType: serviceType)
         self.serviceAdvertiser?.delegate = self
+        
         self.serviceAdvertiser?.startAdvertisingPeer()
     }
     

    public func getMyPeerID() -> MCPeerID {
        return myPeerId
    }
    // Debug mode
    private func DLog(message: String, _ function: String) {
        if debugMode {

    // MARK: Methods for guest
    public func startSearchingForHosts() {
        self.host = nil

        serviceBrowser = MCNearbyServiceBrowser(peer: myPeerId, serviceType: serviceType)
        serviceBrowser?.delegate = self

        foundHosts = []
        serviceBrowser?.startBrowsingForPeers()
    }
    
    public func stopSearchingForHosts() {
        serviceBrowser?.stopBrowsingForPeers()
    }
    
    public func connectToHost(host: MCPeerID, context: NSData? = nil, timeout: NSTimeInterval = defaultTimeout) {
