Added RUNMODE variable