This also works really, really well:
But you’ll need to do it once per each HISM component. Otherwise the indexes get mixed up as discussed above.
That array needs clearing before use, ofc!