Fixed crashing issues with BrowserActivity, Refactored DiscoveryAgent to detect existing scanning functions and react accordingly
removed the diff.txt