New menu algorithm