Added index for error debugging