Added debugging logs.