Add support of serveral run modes