Added a new listener to update the value of unfinished tasks