Added code to make API run while SCADA is not.