Fixed console.log and output.