Added get_vars function