Added some debugging logs.