Just to confirm, here the index is 1-based, whereas the index in `metadata-sp.xml` the logic appears to be 0-based. I'm assuming it's mostly arbitrary, but maybe better to keep them consistent.