Added index to relationships