Added reindex functionality