Renamed parameter in closure to match loop parameter name