Added index retrieval method.