Added error checking, sleeps for slow VMs