Improve the algorithms for the update of the status of the tasks