Got PWM duty cycle to work