Jeremy Newman : instead of outputting debug, put in the console