Refactor MyClient.