Removed debugging console.log() calls