Ah, well in that case we could just crawl back with
caller looking for calls to BEGIN or END to figure out which one we are in. Much more reliable than trying to arrange to have the very last END block inserted (particularly when we might load something that adds some more at any point).