Removed console.log() used for debugging.