Trying out temporary file. I have a feeling this is being caused by plugin_host being async