Using calculated menu length.