GetMachineStatus function updated