Simplfies the variable resolution logic.