Set speed correctly