First basic implementation of plugin with Magma preferences