Removed console.log() debugging code.