Updated to use UI thread