Use debug instead of console.