Setting operating modes