Store the correct cost with results.