Implemented multi threaded for searching