Moved common task_state updating to AsyncTask.