Removing extra console.log