Added stack ranking