Add total cost output in simulator.