RED:  Reverted last change and renamed loop variable to expose missing parameters when not relying on hoisting
Restored  parameters to fix error