Moved indexing to background