Removing superfluous console.log statements