Made polling interval a method argument to awaitInstances.