U930615: Starting codeing of new cost function