Change runOnUiThread calls to fix PIA spawn