Updated to support server priorities. Primary server still outranks backup, reguardless of priority number set.