Now uses console.debug on where appropriate