Improved the way units are handled in plugins; these now have their own dedicated parameter in the config file