         GIDSignIn.sharedInstance().signIn()
     }
     
-    public func onAuthenticationSuccess(_ info : AnyObject?){
+    public func onAuthenticationSuccess(info : AnyObject?){
         authContext = nil
         GoogleAuthenticationManager.logger.debug("onAuthenticationSuccess info = \(info)")
     }
     
-    public func onAuthenticationFailure(_ info : AnyObject?){
-        authContext = nil
-    }
-    
-    
-    public func logout(_ completionHandler: BmsCompletionHandler?){
+    public func onAuthenticationFailure(info : AnyObject?){
+        authContext = nil
+    }
+    
+    
+    public func logout(completionHandler: BmsCompletionHandler?){
         GIDSignIn.sharedInstance().disconnect()
         GIDSignIn.sharedInstance().signOut()
         MCAAuthorizationManager.sharedInstance.logout(completionHandler)

    }
    
    @objc
    public func sign(_ signIn: GIDSignIn!, didDisconnectWith user: GIDGoogleUser!, withError error: NSError!) {
        // Perform any operations when the user disconnects from app here.
        // ...
        //        print ("Got disconnected")
    }
    
    public func handleApplicationOpenUrl(openURL url: URL, sourceApplication: String?, annotation: AnyObject) -> Bool {
        return GIDSignIn.sharedInstance().handle(url, sourceApplication: sourceApplication, annotation: annotation)
    }
    
    @available(iOS 9.0, *)
    public func handleApplicationOpenUrl(openURL url: URL, options: [String : AnyObject]) -> Bool {
        return GIDSignIn.sharedInstance().handle(url,
                                                    sourceApplication: options[UIApplicationOpenURLOptionsSourceApplicationKey] as? String,
                                                    annotation: options[UIApplicationOpenURLOptionsAnnotationKey] as? String)
    }

            self.localVC = topController
        }
        
        localVC!.presentViewController(viewController, animated: true, completion: nil)
    }
    
    // Dismiss the "Sign in with Google" view
    @objc
    public func signIn(signIn: GIDSignIn!, dismissViewController viewController: UIViewController!) {
        localVC!.dismissViewControllerAnimated(true, completion: nil)
        localVC = nil
    }
}
