Added index to bag.