New version of discovery-url that uses pipes