As I noticed, working with schematics has its own problems. For example, if I wrote this not as a schematic, but as a script, then I would insert a variable depending on the total number of groups. Thus making the script automatic. But making a schematic, as I understand it, I have to duplicate the nodes as many times as I can have the maximum number of groups. Do I understand correctly that there is no other option or am I missing something?