Just to clarify,
Elvenbanes code won’t work as it is using k for the CVar settings.
In the for loop being executed, k is the implied table key which in this case is 1, 2, 3, 4
My modification adds the v (key values or “synchronizeConfig” etc.) to the loop and uses that for the CVars.
Edit: Both sets of code are now functionally identical.