Fix avl output and commands send to avl