Add client endpoint code.