Added "productionmode" flag