Made index auto-updating