This can be simplified to `for (i = 0; i < groupParams.thumbs; i++) {` and the line above it can be removed.