TaskDefinition methods updated.