Removed console.log debug line