Added multi-threading while reindex-all