Add console.log for debug