Now checks for failure after each search