waitForInstances