Create rcmain