Updating task tree