Use debug instead of console.log