     
     private init()
     {
+        AromaClient.TOKEN_ID = "8186834c-9140-4323-b678-c780b0fc1600"
     }
     
     public func initialize()
     {
-        guard !initialized else { return }
-        
-        if initializing
-        {
-            LOG.info("Already initializing. Blocking until done.")
-            waitUntilInitialized()
-            return
-        }
-        
-        initializing = true
-        
-        LOG.debug("Initializing LexisDatabase")
-        
-        
-        initializing = false
-        initialized = true
+        LOG.debug("Ignoring depracated initialize() call")
     }
 
     public var anyWord: LexisWord
     {
-        if let word = web.getAnyWord()
+        if let word = memory.getAnyWord()
         {
             return word
         }
         else
         {
-            loadPersisted()
-            
-            if let word = memory.getAnyWord()
-            {
+            startLoadingFromWeb()
+            
+            let startTime = Date()
+            if let word = web.getAnyWord()
+            {
+                let latency = startTime.timeIntervalSinceNow
+                LOG.debug("Operation to load any word from web took \(latency)s")
+                AromaClient.sendLowPriorityMessage(withTitle: "Web Request Complete", withBody: "Operation took \(latency)s")
+                
                 return word
             }
             else
             {
+                AromaClient.sendHighPriorityMessage(withTitle: "Operation Failed", withBody: "Coult not load any word")
                 return LexisWord.emptyWord
             }
         }

//  Copyright © 2016 RedRoma, Inc. All rights reserved.
//

import Foundation
import Archeota

/**
    This is the API to the Lexis Database of Latin Words.

        }
    }
    
}


