Added debug code to OAuthManager