Added something to wait until the instance is ready