Scrapped pwm and rewritten