Added the speed control functionality in the middle level