Changed AsyncTask to use a threadpool executor.