Added PWM capture.