Modified CreateTaskResult in class TaskRunner