Minified code with diode support (hacky)