Scada.main changes