Updated with the amendment of PWM from pin 11 to pin 3