Client generation

TODO