Get rid of averaging/cost code.