So I searched a bit on the internet, all I need to do to adjust the schematic, is insert a diode before the resistor?