Adding Chris's changes to initialize using the PWM's