Added create_avl_file function