Removing unnecessary console.log