Removing undesired console.log