added timer functionality to motor control and covered canceling cases