Moved debug info to console.log