Moved statuscondition into the CompletedTask class.