Added some additional debug messages.