Code

Convert the code to the new client.Client interface.