Rework of my own, old plugin (magma/rust)