Added a parameter to remove directly the async thread