Added stack size comparator in InvUtils