Adding search to scan history. Fixing issue #1