Added console.log to test cost