Implement levelIndex