Correctly selecting the type of task to use for the cost model.