Changed index handling to versioning.