Removed console.error logging