Updated the label check with machine name check.