SearchWorker: isPending etc. may need proper locking (with mutexes)
Memory leaks(ignored for now due to short-running nature of the application)