Updated UI to use a background thread to update labels.