Added per_example to the cost.