Fixed largestStack measurement