Modified to use Discovery (when using multiple UPS)
Modified to use Discovery (when using multiple UPS)