Modified AsyncTask to prevent concurrent executions.