Finished discover function in discover.rb