Added index to printing data