Add the beginnings of PWM code.