Removed call to console.error