Make the sleep in reIndexAll() optional