No changes. Nearly added stats functions, are these wanted here?
Indexer class taken from SO