Getting rid of unnecessary console.logs