added tracking of completed tasks