Modified to use config files and to self recover if server in cluster goes down