Added a debug message in the console