Re-implemented SSO.