Added error cost and started comparison