Completed the autodiscovery implementation. Need to add some connection balancing.