Removed unnecessary console.log & console.error