Added the run_avl function