Adjusted logic to Lidquid's forloop indexing at 1 instead of 0