Added a static way to 'wait' for an instance to build before updating metadata (Required to avoid stack overflow errors when testing)