added speed control