Actually even if the number of subtasks were to vary we would get an exception in the for loop and it would never get here. So I am going to remove this ValueError.