Revisions to cost functions