Added checks for the comparing of speeds