More edits in setting up the API client.