Changed maximum number of menus from 3 to 6.