Moved Speed to for loop