Added index counter