Update scanner.rb