Improves calc_set, getvars