Changing max and mins to speed

Instead of distance.