Added optional initial value assignment to VAR statement.

This loop runs for one less iteration than variables.size(). This is not very obvious by the starting value of 1. Better would be `(size_t i = 0; i < variables.size() - 1; i++)`