Replaced console.log with debug