Vars encoding