The early ancestors of the modern horse walked on several spread-out toes, an accommodation to life spent walking on the soft, moist grounds of primeval forests. As grass species began to appear and flourish, the equids' diets shifted from foliage to grasses, leading to larger and more durable teeth. At the same time, as the steppes began to appear, the horse's predecessors needed to be capable of greater speeds to outrun predators. This was attained through the lengthening of limbs and the lifting of some toes from the ground in such a way that the weight of the body was gradually placed on one of the longest toes, the third.