Added support for locked indexes.