Updated query's en new menu weight function