Moved skel to pwm and added counter