Added first functionality for keeping track of also the finished searches.
Need to figure out how to keep priority higher for running and queued searches.