Add better debug messages.