Utils: renamed collectVars to collectVariables.