              I'm not sure what doc.css("table#queue tbody tr").underestimatedCount is.
              So I count in a for-loop instead.
              */
-            var queueLength = 1
+            
+            let table = doc.css("table#queue tbody tr")
+            var newTableHTML = ""
+            
+            table.forEach { p in
+                if let text = p.text {
+                    newTableHTML += text
+                }
+            }
+            
+            //            table.reduce("") { p in
+            //                let base = p.0
+            //                if let text = p.1.text {
+            //                    return base + text
+            //                }
+            //                return base
+            //            }
+            
+            
+            
+            
+            
+            var queueLength = 0
             
             for row in doc.css("table#queue tbody tr") {
+                
+                queueLength += 1
+                
                 let rowTrimmed = row.text!.trimmingCharacters(in: NSCharacterSet.whitespacesAndNewlines)
                 let rowSeparated = rowTrimmed.components(separatedBy: "\n").map{
                     $0.trimmingCharacters(in: NSCharacterSet.whitespacesAndNewlines)

        decisionHandler(WKNavigationActionPolicy.allow)
    }
    
    
    func parseHTML(html: String) -> Void {
        print(">>> @parseHTML()")
        
        if let doc = Kanna.HTML(html: html, encoding: String.Encoding.utf8) {
            

                }
                
                self.parseRow(row: rowSeparated, queueLength: queueLength)
                
            }
            
            UIApplication.shared.applicationIconBadgeNumber = queueLength
        }
    }
    
//    func isTableContentNew(old: inout String, new: String) -> Bool {
//        print(old)
//        print(new)
//        let result = old != new
//        old = new
//        return result
//    }
    
    
    func parseRow(row: [String], queueLength: Int){
        let name = row[1]
