Creating index.