Vars need to be global.
Otherwise they trigger one build each