This method could use some more LOG_DEBUGs, I suspect.