Implemented automatic access token switching.