Add isFinished flag for TMTask