Debug code added to analyze