Prepared the cost file reading for Jim's changes.