Removing excess console.log messages