Added debug output that takes into account indentation.