Add debugging.
Output error message if the menu structure wasn't readable.