Adding debug messages with the debug mode.