Removing needless console.logs