Generate index by default. And added --no-generate-index option to
disable it.