Adding support for PWM and extended Serial ports.