I guess you're super busy, but this if statement is out of the 'for' loop, do you think you can get the correct vm name?