Adding some debug messages.