Copied discover function into fuzzer.rb