Modified scaling logic