Create PWMAIN