 class JavaScriptBridge {
     weak var delegate: JavaScriptBridgeDelegate?
     var profile: Profile
-    
+    private let maxFrecencyLimit: Int = 30
+
     init(profile: Profile) {
         self.profile = profile
+        self.profile.history.setTopSitesCacheSize(Int32(maxFrecencyLimit))
     }
     
     func callJSMethod(methodName: String, parameter: AnyObject?) {

        }
	}

    // Mark: Helper methods
    private func callPhoneNumber(data: AnyObject?) {
        if let phoneNumber = data as? String {
            let trimmedPhoneNumber = phoneNumber.removeWhitespaces()

            
        case "getTopSites":
            if let limit = data as? Int {
                refreshTopSites(limit, callback: callback!)
            }
            
        case "searchHistory":
