Update how index works