Fix invalid type check.
Add more debug output.
Report indexing rates in more detail.