Patches to allow API to make multiple logins.