Creation of an index