Changed process.totaltasks to not only count completed tasks