var_update() finished, not tested yet.