AsyncTask to closely mimic older Android version.