Rewrite update_obj() subfunction on session init.