For implementing the client component of service discovery