Update PWMAIN