Added index printing to block processing