Add code structure to enable display of SampleGenerators