Update scan.rb