Lots of the work after the initial code generation is cajoling it into writing something shorter then going back and just doing that.