added function: GetVariables()