Can you add the (relevant parts of the)
EnvVars
function to the posted code?
EnvVars
function to the posted code?