Add some example generated code, and some relevant API for such.