Searching now on a separate thread

I did this as I might want to show some stats in the GUI thread.