Removing superfluous console.log