> Why not just use "uint max_idx == (uint)ready_cnt.length()" since ready_cnt can't be changed? You don't need to pass it as argument then. Yes, it's the same. I just found that passing the argument was a bit clearer. Anyway I can change it. Roland.