Updating cost.