Added speed control functionality