I think this should go into the Task class.