Added diodes to power inputs.