Client mode almost done.