Removed console.log and unused variable