While I'm not a master programmer, I'm fairly good at psuedo-code and logic. If I'm allowed to ask, what's the calculation for that is better, assuming all stat weights were 1? or even, leaving them as x, y, z, etc.? I wonder if maybe you could, if you already aren't, use a "stat per ilvl" calculation instead of a straight stat. With this, you could easily still prioritize gear and stats, but you could also look and see that the robe is far and away better than the existing chest, on a per slot basis. You could still add chest and head together and compare to the robe. This may be over complicating things, but I just feel there has to be a way. Obviously, not knowing your code ... or even how to code, really ... I can only help in that sense. Sorry if I'm just being a bother. Just trying to help make an already awesome plugin a little better.