Added override parameter to setVariables()