Moving GetVarReference into safe chunk