//These two relay functions exist to provide an easy way to switch to a debug mode
 public static void EnableRelay(int Device)
 {
     lock (Relays)
     {
         Relays.EnableRelay(Device);
     }
 }