Adding debug messages.