The loop works when I don\'t assign regionOptions to regions.data. However when I do it throws the above error. I have no idea how else to proceed any pointers would be grea