Sometimes highly complicated menus can lead to an infinite loop until the function times out.