Added a slight pause before checking for index existence.