A whole bunch of work to get auto-generated clients working.