Add support for runOnUiThread