Adding some debugging logs