Use log function instead of console.log