Add generator and generated code