Adding warning for diode