     private static let sharedKitchen = Kitchen()
     private static weak var redirectWindow: UIWindow?
     private static var _navigationControllerDelegateWillShowCount = 0
-    private static var didRedirectToWindow: (UIWindow -> ())?
+    private static var didRedirectToWindow: (() -> ())?
 
     private var evaluateAppJavaScriptInContext: JavaScriptEvaluationHandler?
 

    /// - Note: **BETA API** This API is subject to change.
    public static func serve(xmlString xmlString: String,
       type: PresentationType = .Default, redirectWindow: UIWindow,
       didRedirectToWindow: (UIWindow -> ())? = nil)
    {
        Kitchen._navigationControllerDelegateWillShowCount = 0
        Kitchen.navigationController.setViewControllers([UIViewController()], animated: true)

        }
        if viewController == Kitchen.navigationController.viewControllers[0] {
            Kitchen.redirectWindow?.makeKeyAndVisible()
            if let _ = Kitchen.redirectWindow {
                Kitchen.didRedirectToWindow?()
                Kitchen.didRedirectToWindow = nil
            }
        }
