Adds RefreshVarablesTable function
Merges with master