Added some debugging messages.