Extract method
Do not iterate through the vms again