Adding console.log and console.error