Minor update

Addition to self generating function for use by custom code generator.