Added a way to cancel the search