Changed manner in which PWM timings are calculated, eliminating need for different modes!)