Using Debug output instead of console.