Yes. I will change the code and use loop instead. But before we should be clear of what we want. I would suggest a mapping as above by honoring the bit position, but overwriting channel names.

Is that okay?