wrapper is starting to show promise. It is now able to dynamically generate submenus.