We shouldn't use sleep here. We should add a wait in the search method if necessary.