PWM version which work well with all the tests