Added methods to create and retrieve indexes.