Update Discovery API with find feature and wrap socket code in a block