Vars improved

Backtrace and vars locks added