modified Thread to AsyncTask someplace.