# Append to output
         output+=("$level");
-        #declare -p flag_root level;
+        #declare -p flag_root level; # debug
         ((n++));
     done;
     # Print output
     printf "%s\n" "${output[@]}";
-};
+}; # return hierarchy level of lines as integers
 
 # Test the function with the provided lines
 printf "\n\n========Test 1========\n"