Use threading to retrieve index and show progress