Generating index.