Change speed ctrl function

Change speed ctrl function